clc
clear all
data = xlsread('1.2.2.xlsx','B2:F489');
figure
% 求维度之间的相关系数
rho = corr(data, 'type','pearson');
% 绘制热图
string_name={'性别'	,'年级','专业领域','您使用AI工具的频率如何','您对AI工具的依赖程度如何'};
xvalues = string_name;
yvalues = string_name;
h = heatmap(xvalues,yvalues, rho, 'FontSize',10, 'FontName','宋体');
h.Title = 'Pearson correlation';
colormap sky